package com.bazhua.bazo.repository.model.result;

public enum BaseResultCode implements IResultCode {


    SUCCESS(0, "操作成功"),

    SYSTEM_ERROR(90001, "服务器内部错误"),

    USER_PASSWORD_ERROR(90002, "用户名或密码错误"),

    Have_Not_Data(90000, "查询数据为空");


    /**
     * 错误码
     */
    private Integer code;

    /**
     * 错误信息
     */
    private String msg;


    /**
     * 构造函数
     *
     * @param code 错误码
     * @param msg  错误信息
     */
    BaseResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
